package com.wh.springboot.exception;

import lombok.Getter;

/**
 * 自定义异常
 */
@Getter
public class ServiceException extends RuntimeException {
    private String status;

    //构造器
    public ServiceException(String status, String msg) {
        //继承 RuntimeException , 也就有对应的msg，不需要额外定义属性
        super(msg);
        this.status = status;

    }
}
